package masterjava.common.client.gxt.charts;

import com.extjs.gxt.charts.client.model.ChartModel;
import com.extjs.gxt.charts.client.model.Legend;
import com.extjs.gxt.charts.client.model.ScaleProvider;
import com.extjs.gxt.charts.client.model.Text;

/**
 * User: gkislin
 * Date: 7/18/11
 */
public class GxtChartModel extends ChartModel {

    public GxtChartModel(String titleText) {
        super(titleText, "font-size: 14px; font-family: Verdana;");
        setBackgroundColour("#ffffff");
        setLegend(new Legend(Legend.Position.TOP, true));
        setScaleProvider(ScaleProvider.ROUNDED_NEAREST_SCALE_PROVIDER);
    }

    public void setTitle(String title) {
        setTitle(new Text(title));
    }
}
